package hu.arguscab.ai;

import java.util.LinkedList;

/**
 * Represents a path in a Graph. Its elements are <code>CompoundAction</code>s, which are
 * operations that can be applied to Graph's Nodes.
 * @author sharp
 */
public class Path<N> extends LinkedList<N> {
	//private List<CompoundAction> path;

	public Path() {
	//	path = new LinkedList<CompoundAction>();
	}

	/*public Path(List<CompoundAction> path) {
		this.path = path;
	}*/

	/*void add(CompoundAction acs) {
		path.add(acs);
	}*/

	/**
	 *
	 * @return
	 */
	/*public List<CompoundAction> getElements() {
		return path;
	}*/

	@Override
	public String toString() {
		StringBuilder str = new StringBuilder();
		int i ;
		for ( i = 0; i < this.size()-1; ++i )
			str.append( this.get(i) ).append("==>");
		str.append( this.get(i) );
		return str.toString();
	}
}
